package com.message.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * @Author: Lenovo
 * @Description: TODO
 * @DateTime: 2023/9/14 14:00
 **/
@Data
@ToString
@ApiModel(description = "视频信息")
public class Media {
    @ApiModelProperty(value = "视频id")
//    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    @ApiModelProperty(value = "视频标题", required = true)
    private String title;
    @ApiModelProperty(value = "上传者Id")
    private Integer uploader;
    @ApiModelProperty(value = "上传者用户名")
    private String uploaderName;
    @ApiModelProperty(value = "上传时间")
//    private Date uploadTime;
    private Timestamp uploadTime;
    @ApiModelProperty(value = "视频MD5值")
    private String md5;
    @ApiModelProperty(value = "视频时长")
    private String duration;
    @ApiModelProperty(value = "视频大小")
    private double size;
    @ApiModelProperty(value = "评论数")
    private Integer comments;
    @ApiModelProperty(value = "观看数")
    private Integer views;
    @ApiModelProperty(value = "视频分类", required = true)
    private Integer category;
    @ApiModelProperty(value = "视频标签", required = true)
    private String tags;
    @ApiModelProperty(value = "点赞数")
    private Integer likes;
    @ApiModelProperty(value = "视频状态")
    //0代表视频禁用，1代表视频启用
    private Integer status;
}
